package com.ruoyi.system.api.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_leave_request
 * 
 * @author ruoyi
 * @date 2024-07-19
 */
@TableName("sys_leave_request")
public class SysLeaveRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 请假id */
    @TableId(type = IdType.AUTO)
    private Long requestId;

    /** 标题 */
    @Excel(name = "标题")
    private String requestTitle;

    /** 请假人 */
    @Excel(name = "请假人")
    private Long leaveId;

    /**
     * 请假人岗位id
     */
    private Long postId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 附件 */
    @Excel(name = "附件")
    private String img;

    /** 0.生成 1.审核中 2.同意 3.驳回 */
    @Excel(name = "0.生成 1.审核中 2.同意 3.驳回")
    private String status;


    @TableField(exist = false)
    private List<SysLeaveRequestDetail> sysLeaveRequestDetails;

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public List<SysLeaveRequestDetail> getSysLeaveRequestDetails() {
        return sysLeaveRequestDetails;
    }

    public void setSysLeaveRequestDetails(List<SysLeaveRequestDetail> sysLeaveRequestDetails) {
        this.sysLeaveRequestDetails = sysLeaveRequestDetails;
    }

    public String getProcInstId() {
        return procInstId;
    }

    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    private String procInstId;

    public void setRequestId(Long requestId) 
    {
        this.requestId = requestId;
    }

    public Long getRequestId() 
    {
        return requestId;
    }
    public void setRequestTitle(String requestTitle) 
    {
        this.requestTitle = requestTitle;
    }

    public String getRequestTitle() 
    {
        return requestTitle;
    }
    public void setLeaveId(Long leaveId) 
    {
        this.leaveId = leaveId;
    }

    public Long getLeaveId() 
    {
        return leaveId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("requestId", getRequestId())
            .append("requestTitle", getRequestTitle())
            .append("leaveId", getLeaveId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("remark", getRemark())
            .append("img", getImg())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
